//
//  PAAboutViewController.m
//  PAMobileWallet
//
//  Created by shen pu on 13-7-18.
//  Copyright (c) 2013年 平安付. All rights reserved.
//

#import "PAAboutViewController.h"
#import "PANavView.h"
#import "PAAboutViewController.h"

@interface PAAboutViewController ()

@end

@implementation PAAboutViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self)
    {
        //aboutView = [[PAAboutView alloc] initWithFrame:RECT_PHONE];
        aboutView = [[PAAboutView alloc] initWithFrame:CGRectMake(0, 20, WIDTH_PHONE, HEIGHT_CURRENT)];
        aboutView.parentController = self;
        aboutView.backgroundColor = BGVIEW_COLOR;
        self.view = aboutView;
        
        navView = [[PANavView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 44)];
        navView.delegate = self;
        [navView setTitle:@"关于我们"];
        [aboutView addSubview:navView];
    }
    return self;
}

#pragma mark - PANavViewDelegate methods

- (void)sendSelf:(PANavView *)sendView
{
    //[self.navigationController popViewControllerAnimated:YES];
    [self.view removeFromSuperview];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (void)viewDidAppear:(BOOL)animated
{
    //
}

- (void)viewWillAppear:(BOOL)animated
{
    [aboutView.authScrollerView setContentOffset:CGPointMake(0, 0)];
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

@end
